import { Pipe, PipeTransform } from '@angular/core';

@Pipe({ name: 'getstatus2' })

export class StatusPipe2 implements PipeTransform {
    transform(value: any , type:string): string {
        let map = {};
        if(value){
           map = JSON.parse(value);
        }
        let lang = {
            "zh":"zh_CN",
            "jp":"ja_JP",
            "en":"en_US",
        }
        return map[lang[type]];
    }
} 
